package io.renren.modules.wx.dao;

import io.renren.modules.wx.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Insert("insert into wx.user(openid, student_id) values (#{openid}, #{studentId})")
    void insert(User user);

    @Select("select * from wx.user where openid = #{openid}")
    User getByOpenId(String openid);
}
